package com.abc.xxx.model.vo;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * 前端存储的vuex store中的用户信息结构
 *   state: {
 *     name: '',
 *     nick: '',
 *     root: false,
 *     dept: {
 *       id: null,
 *       name: '',
 *     },
 *     role: {
 *       id: null,
 *       name: '',
 *       dataScope: null,
 *       accessiblePages: [],
 *       accessibleDepts: []
 *     },
 *   },
 */
@Getter
@Setter
public class UserInfo {

    private Integer id;
    private String name;
    private String nick;
    private Boolean root;
    private Integer deptId;
    private String deptName;
    private Integer roleId;
    private String roleName;
    private Integer dataScope;
    private List<String> accessibleViews = new ArrayList<>(64);
    private List<Integer> customAccessibleDepts = new ArrayList<>(64);

}
